<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link href="flex.css" rel="stylesheet" type="text/css" />
  <title>flex基础</title>
</head>
<body>
  <h1>
    容器属性：
  </h1>
  <h5> flex-direction:row; flex-wrap:*</h5>
  <div class="flex-1">
    <div class="item item-1">1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1</div>
    <div class="item item-2">2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2</div>
    <div class="item item-3">3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3</div>
    <div class="item item-4">4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4</div>
    <div class="item item-5">5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5</div>
    <div class="item item-6">6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h5> flex-direction:column;</h5>
  <div class="flex-2">
      <div class="item item-1">1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1</div>
      <div class="item item-2">2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2</div>
      <div class="item item-3">3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3</div>
      <div class="item item-4">4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4</div>
      <div class="item item-5">5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5</div>
      <div class="item item-6">6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h5> justify-content;</h5>
  <div class="flex-3">
      <div class="item item-1">1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1</div>
      <div class="item item-2">2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2</div>
      <div class="item item-3">3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3</div>
      <div class="item item-4">4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4</div>
      <div class="item item-5">5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5</div>
      <div class="item item-6">6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h5> align-items; align-content;</h5>
  <div class="flex-4">
      <div class="item item-1">1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1</div>
      <div class="item item-2">2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2</div>
      <div class="item item-3">3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3</div>
      <div class="item item-4">4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4</div>
      <div class="item item-5">5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5</div>
      <div class="item item-6">6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h1>
    项目属性：
  </h1>
  <h5> order;</h5>
  <div class="flex-5">
      <div class="item item-1">1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1</div>
      <div class="item item-2">2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2</div>
      <div class="item item-3">3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3</div>
      <div class="item item-4">4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4</div>
      <div class="item item-5">5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5</div>
      <div class="item item-6">6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h5> flex-grow;</h5>
  <div class="flex-6">
      <div class="item item-1">1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1</div>
      <div class="item item-2">2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2</div>
      <div class="item item-3">3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3</div>
      <div class="item item-4">4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4</div>
      <div class="item item-5">5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5</div>
      <div class="item item-6">6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h5> flex-shrink;</h5>
  <div class="flex-7">
      <div class="item item-1">1 1 1 1 1 1 1 1 1 1 </div>
      <div class="item item-2">2 2 2 2 2 2 2 2 2 2 </div>
      <div class="item item-3">3 3 3 3 3 3 3 3 3 3 </div>
      <div class="item item-4">4 4 4 4 4 4 4 4 4 4</div>
      <div class="item item-5">5 5 5 5 5 5 5 5 5 5</div>
      <div class="item item-6">6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h5> flex-basis;</h5>
  <div class="flex-8">
      <div class="item item-1">1 1 1 1 1 1 1 1 1 1 </div>
      <div class="item item-2">2 2 2 2 2 2 2 2 2 2 </div>
      <div class="item item-3">3 3 3 3 3 3 3 3 3 3 </div>
      <div class="item item-4">4 4 4 4 4 4 4 4 4 4</div>
      <div class="item item-5">5 5 5 5 5 5 5 5 5 5</div>
      <div class="item item-6">6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h5> align-self;</h5>
  <div class="flex-9">
      <div class="item item-1">1 1 1 1 1 1 1 1 1 1 </div>
      <div class="item item-2">2 2 2 2 2 2 2 2 2 2 </div>
      <div class="item item-3">3 3 3 3 3 3 3 3 3 3 </div>
      <div class="item item-4">4 4 4 4 4 4 4 4 4 4</div>
      <div class="item item-5">5 5 5 5 5 5 5 5 5 5</div>
      <div class="item item-6">6 6 6 6 6 6 6 6 6 6</div>
  </div>
  <h5> 垂直居中实现</h5>
  <div class="flex-20">
      <div class="item item-1">垂直居中 水平居中</div>
  </div>
</body>
</html>